<!DOCTYPE html>
    <head>
        <title>测试-订单列表</title>
        <#include "/web/common/meta.ftl"/>
        <script type="text/javascript">        	
			$(function(){
				$('#orderGrid').datagrid({
					url: '<@s.url namespace="/app/dstest" action="Order!orderJsonList" includeParams="none" />',
					title: '订单列表',
					striped: true,
					collapsible:false,
					width: 'auto',
					height: fillDataGridHeight(),
					fitColumns: false,
					remoteSort:true,
					singleSelect:true,
					nowrap: false,
					idField:'id',
					toolbar:[{
							text:'添加',
							iconCls:'icon-add',
							handler:function(){	
								openTopWindow('orderInput', '订单维护', '<@s.url namespace="/app/dstest" action="Order!input" includeParams="none" />', 500, 320);
							}
						},'-',{
							id:'btEdit',
							disabled: true,
							text:'修改',
							iconCls:'icon-edit',
							handler:function(){		
								popTopEdit('orderGrid', 'datagrid', 'orderInput', '角色维护', '<@s.url namespace="/app/dstest" action="Order!input" includeParams="none" />?t=' + Math.floor(Math.random()*100000), 500, 320);
							}
						},'-',{
							id:'btDelete',
							disabled: true,
							text:'删除',
							iconCls:'icon-remove',
							handler:function(){
							}
					}],					
					columns:[[
						{field:'customer', title:'客户姓名',width:100,sortable:true,resize:false},
						{field:'productId', title:'产品编号',width:100,sortable:false,resize:false,align:'left'},
						{field:'mobile',title:'联系电话',width:100, align:'left'}
					]],				

					pagination:false,
					rownumbers:true	
				});
			    	
			});		
		</script>      
    </head>
    
<body class="page">
	<table id="orderGrid"></table>
	<div id="orderInput" class="ui-window" closed="true" modal="true" title="新窗口" style="width:300px;height:100px;"></div>	
	<div id="processWindow" class="ui-window" closed="true" modal="true" title="提示消息"
        style="width: 300px; height: 60px;">
        <div id="windowContent" class="general-font">
            <img src="${baseJsImg}/panel_loading.gif" />操作进行中，请稍后...
        </div>
    </div>
</body>
</html>
